﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Linq;

namespace Ocean.His.MedicalInsurance
{
    /// <summary>
    /// 初始化动态库
    /// </summary>
    [DataContract]
    public class InitRequestModel
    {
        /// <summary>
        /// 服务端IP地址
        /// </summary>
        [DataMember(Name = "IP")]
        public string Ip { get; set; }

        /// <summary>
        /// 服务端端口
        /// </summary>
        [DataMember(Name = "PORT")]
        public int Port { get; set; }

        /// <summary>
        /// 超时
        /// </summary>
        [DataMember(Name = "TIMEOUT")]
        public int Timeout { get; set; }

        /// <summary>
        /// 动态库日志目录
        /// </summary>
        [DataMember(Name = "LOG_PATH")]
        public string LogPath { get; set; }

        /// <summary>
        /// 电子凭证中台URL
        /// </summary>
        [DataMember(Name = "EC_URL")]
        public string EcUrl { get; set; }

        /// <summary>
        /// 驱动
        /// </summary>
        [DataMember(Name = "DRIVER")]
        public string Driver { get; set; }

        /// <summary>
        /// 社保卡验证密码方式
        /// </summary>
        [DataMember(Name = "CARD_PASSTYPE")]
        public string CardPasstype { get; set; }

        /// <summary>
        /// CSB的_api_name
        /// </summary>
        [DataMember(Name = "API_NAME")]
        public string ApiName { get; set; }

        /// <summary>
        /// CSB的_api_version
        /// </summary>
        [DataMember(Name = "API_VERSION")]
        public string ApiVersion { get; set; }

        /// <summary>
        /// CSB的_api_access_key
        /// </summary>
        [DataMember(Name = "ACCESS_KEY")]
        public string AccessKey { get; set; }

        /// <summary>
        /// CSB的secretKey
        /// </summary>
        [DataMember(Name = "SECRETKEY")]
        public string Secretkey { get; set; }

        /// <summary>
        /// 定点编号
        /// </summary>
        [DataMember(Name = "ORG_ID")]
        public string OrgId { get; set; }

        /// <summary>
        /// 行政区划代码
        /// </summary>
        [DataMember(Name = "AREA_CODE")]
        public string AreaCode { get; set; }

        /// <summary>
        /// 就医地医保区划
        /// </summary>
        [DataMember(Name = "MDTRTAREA_ADMVS")]
        public string MdtrtareaAdmvs { get; set; }

        /// <summary>
        /// 接收方系统代码
        /// </summary>
        [DataMember(Name = "RECER_SYS_CODE")]
        public string RecerSysCode { get; set; }

        /// <summary>
        /// 接口版本号
        /// </summary>
        [DataMember(Name = "INFVER")]
        public string Infver { get; set; }

        ///// <summary>
        ///// 参保地医保区划
        ///// </summary>
        //[DataMember(Name = "INSUPLC_ADMDVS")]
        //public string InsuplcAdmdvs { get; set; }

        /// <summary>
        /// 定点医药机构编号
        /// </summary>
        [DataMember(Name = "FIXMEDINS_CODE")]
        public string FixmedinsCode { get; set; }

        /// <summary>
        /// 定点医药机构名称
        /// </summary>
        [DataMember(Name = "FIXMEDINS_NAME")]
        public string FixmedinsName { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        [DataMember(Name = "DEVNO")]
        public string DevNo { get; set; }

        /// <summary>
        /// 设备安全信息
        /// </summary>
        [DataMember(Name = "DEV_SAFE_INFO")]
        public string DevSafeInfo { get; set; }

        /// <summary>
        /// 数字签名信息
        /// </summary>
        [DataMember(Name = "CAINFO")]
        public string Cainfo { get; set; }

        /// <summary>
        /// 签名类型
        /// </summary>
        [DataMember(Name = "SIGNTYPE")]
        public string Signtype { get; set; }

        ///// <summary>
        ///// 服务端端口
        ///// </summary>
        //[DataMember(Name = "PORT")]
        //public int Port { get; set; }

        ///// <summary>
        ///// 超时
        ///// </summary>
        //[DataMember(Name = "TIMEOUT")]
        //public int Timeout { get; set; }

        ///// <summary>
        ///// 动态库日志目录
        ///// </summary>
        //[DataMember(Name = "LOG_PATH")]
        //public string LogPath { get; set; }

        ///// <summary>
        ///// 电子凭证中台URL
        ///// </summary>
        //[DataMember(Name = "EC_URL")]
        //public string EcUrl { get; set; }

        ///// <summary>
        ///// 驱动
        ///// </summary>
        //[DataMember(Name = "DRIVER")]
        //public string Driver { get; set; }

        ///// <summary>
        ///// 社保卡验证密码方式
        ///// </summary>
        //[DataMember(Name = "CARD_PASSTYPE")]
        //public string CardPasstype { get; set; }

        ///// <summary>
        ///// CSB的_api_name
        ///// </summary>
        //[DataMember(Name = "API_NAME")]
        //public string ApiName { get; set; }

        ///// <summary>
        ///// CSB的_api_version
        ///// </summary>
        //[DataMember(Name = "API_VERSION")]
        //public string ApiVersion { get; set; }

        ///// <summary>
        ///// CSB的_api_access_key
        ///// </summary>
        //[DataMember(Name = "ACCESS_KEY")]
        //public string AccessKey { get; set; }

        ///// <summary>
        ///// CSB的secretKey
        ///// </summary>
        //[DataMember(Name = "SECRETKEY")]
        //public string Secretkey { get; set; }

        ///// <summary>
        ///// 定点编号
        ///// </summary>
        //[DataMember(Name = "ORG_ID")]
        //public string OrgId { get; set; }

        ///// <summary>
        ///// 行政区划代码
        ///// </summary>
        //[DataMember(Name = "AREA_CODE")]
        //public string AreaCode { get; set; }

        ///// <summary>
        ///// 安全码
        ///// </summary>
        //[DataMember(Name = "CA_INFO")]
        //public string CaInfo { get; set; }

        public InitRequestModel()
        {
            LogPath = $"{Environment.CurrentDirectory}\\logs";
        }
    }
}
